﻿using AutoMapper;

namespace ECommerce.Web.AutoMapper.ValueFormatters
{
    public class CurrencyFormatter : IValueFormatter
    {
        public string FormatValue(ResolutionContext context)
        {
            decimal value = (decimal)context.SourceValue;

            return value.ToString("c");
        }
    }
}
